package com.week1.day03;

public class Demo03 {
    public static void main(String[] args) {
        for (int i = 100; i < 1000; i++) {
            double sum = Math.pow(i%10,3)+Math.pow((i/10)%10,3)+Math.pow((i/100)%10,3);
            if(sum == i){
                System.out.println(i);
            }
        }
    }
}
